@mixin f-webkit($type, $value) {
  -webkit-#{$type}: $value;
  -moz-#{$type}: $value;
  -ms-#{$type}: $value;
  -o-#{$type}: $value;
  #{$type}: $value;
}

.noneborder {
  border: none !important;
}

.box-3vh-height {
  height: 3vh;
}
.box-5vh-height {
  height: 5vh;
}
.box-8vh-height {
  height: 8vh;
}
.box-10vh-height {
  height: 10vh;
}
.box-15vh-height {
  height: 15vh;
}
.box-20vh-height {
  height: 20vh;
}

.font11 {
  font-size: 11px;
}
.font12 {
  font-size: 12px;
}
.font13 {
  font-size: 13px;
}
.font14 {
  font-size: 14px;
}

.v-Center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.textCenter {
  text-align: center;
}

.box-sizing {
  @include f-webkit(box-sizing, border-box);
}
.pos-rel {
  position: relative;
}
.pos-abs {
  position: absolute;
}

.height100 {
  height: 100%;
}

.flex {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;

  @include f-webkit(display, flex);
  @include f-webkit(flex-wrap, wrap);
  @include f-webkit(justify-content, space-between);
  @include f-webkit(align-items, center);
  @extend .box-sizing;
}
.poplayer {
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  @include f-webkit(transform, translate(-50%, -50%));
  @include f-webkit(border-radius, 5px);
}
.flex1 {
  flex: 0 1 auto;
  @include f-webkit(flex, 0 1 auto);
}

.flex0 {
  flex: 1 0 auto;
  @include f-webkit(flex, 1 0 auto);
}
input,
textarea {
  outline: none;
}
.padding-lr,
.profile-list li {
  padding: 0 0.2rem;
  background: #fff;
}

.tips {
  width: 100%;
  font-size: 11px;
  color: #666;
  text-align: center;
  padding: 0.4rem 0;
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.empty {
  text-align: center;
  @extend %position;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);

  p {
    font-size: 14px;
    color: #111;
    line-height: 0.5rem;
  }
}

// link
a {
  color: #096dd9;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0);
  outline: none;
  cursor: pointer;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  -webkit-text-decoration-skip: objects;
}
a:hover {
  color: #1890ff;
}

a:active {
  color: #0050b3;
}

a:active,
a:hover {
  text-decoration: none;
  outline: 0;
}

a[disabled] {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  pointer-events: none;
}

// headline
.headline {
  height: auto;
  .cover {
    display: block;
    float: none;
    margin-left: 0;
    width: 100%;
    height: 0;
    padding-top: 50%;
  }
}

.docMeta {
  color: #8c8c8c;
  font-size: 12px;
  margin-top: 8px;
}
.content {
  display: flex;
  flex-direction: column;
  height: 70%;
  // overflow: hidden;
}
.book {
  max-width: 40%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  vertical-align: bottom;
}
.datetime {
  display: inline-block;
  margin-left: 8px;
}

.cover {
  float: right;
  width: 96px;
  height: 60px;
  margin-left: 16px;
  background-color: #262626;
  background-position: 50%;
  background-size: cover;
  border-radius: 2px;
}

.title {
  font-size: 16px;
  margin-bottom: 4px;
  color: #262626;
  -webkit-line-clamp: 3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  max-height: 100%;
  display: -webkit-box;
  flex: 1 0 auto;
}

.description {
  color: #8c8c8c;
  display: -webkit-box;
  max-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 21px;
}

// h1 h2 h3
h1 {
  @include fontDpr(30px);
}

h2 {
  @include fontDpr(26px);
}

h3 {
  @include fontDpr(22px);
}

h4 {
  @include fontDpr(20px);
}
h5 {
  @include fontDpr(18px);
}
